package namespace.jcu.mobile.library.system;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.DatePicker;

public class RoomBookingActivity extends Activity{
	
	DatePicker dp;
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.room_booking);
	        
	        dp = (DatePicker) findViewById(R.id.datePicker1);
	        Button b = (Button) findViewById(R.id.button1);
	        b.setOnClickListener(new OnClickListener(){
	        	public void onClick(View v){
	        		Intent i = new Intent(RoomBookingActivity.this, SelectTimeActivity.class);
	        		i.putExtra("Date", dp.getDayOfMonth());
	        		i.putExtra("Month", dp.getMonth());
	        		i.putExtra("Year", dp.getYear());
	        		startActivity(i);
	        		
	        	}
	        });
	 }

}
